package com.wolf.etl.model;


import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * Created by tommy's father on 2017/8/17.
 */
@TableInfo(value = "etl_table_rel")
public class EtlTableRelModel {

    @IdInfo
    private Long id;

    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format = "yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;

    @FieldInfo(value = "master_table_id")
    private Long master_table_id;

    @FieldInfo(value = "slave_table_id")
    private Long slave_table_id;

    @FieldInfo(value = "master_column")
    private String master_column;

    @FieldInfo(value = "slave_column")
    private String slave_column;

    @FieldInfo(value = "rel_type")
    private String rel_type;

    public Long getMaster_table_id() {
        return master_table_id;
    }

    public void setMaster_table_id(Long master_table_id) {
        this.master_table_id = master_table_id;
    }


    public String getMaster_column() {
        return master_column;
    }

    public void setMaster_column(String master_column) {
        this.master_column = master_column;
    }

    public Long getSlave_table_id() {
        return slave_table_id;
    }

    public void setSlave_table_id(Long slave_table_id) {
        this.slave_table_id = slave_table_id;
    }

    public String getSlave_column() {
        return slave_column;
    }

    public void setSlave_column(String slave_column) {
        this.slave_column = slave_column;
    }

    public String getRel_type() {
        return rel_type;
    }

    public void setRel_type(String rel_type) {
        this.rel_type = rel_type;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }
}
